<%-- 
    Document   : index
    Created on : 2008-8-27, 14:28:56
    Author     : Ruby
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="sunsite.tools.*,java.util.*,sunsite.service.*;" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sun SITE</title>
    </head>
    <body>
    <h2></h2>
    <s:property value="message"/>

    <s:url id="regForm" action="register">
        <s:param name="type">getForm</s:param>
    </s:url>

    <body>
        <table width="80%" border="1" align="center">
            <tr>
                <td colspan="5"><a href="#">首页 </a> &nbsp;&nbsp; | <a href="#">下载</a> &nbsp;&nbsp; | <a href="#">新闻</a>&nbsp;&nbsp; | <a href="#">校园大使风采</a> &nbsp;&nbsp; | <a href="resumeInit.action">招聘</a> &nbsp;&nbsp; | <a href="#">留言</a></td>
            </tr>
            <tr>
                <td width="30%" align="center" valign="middle"><%@ include file="tools/login.jsp" %><br/>
                <s:a href="%{regForm}">注册</s:a> | 忘记密码</td>
                <td width="50%" colspan="3" rowspan="2" >新闻<br/>
                    <table width="100%" cellspacing="0">
                        <thead>
                            <tr>
                                <th width="50%">标题</th>
                                <th>时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            <s:iterator value="top5News">
                                <tr>
                                    <td align="center"><a href='<s:url action="getNews"><s:param name="id" value="newsId" /></s:url>'>
                                        <s:property value="title" /></a></td>
                                    <td align="center"><s:property value="releasedate" /></td>
                                </tr>
                            </s:iterator>
                        </tbody>
                    </table>
                </td>
                <td rowspan="2">今日推荐</td>
            </tr>

            <tr>
                <td>操作</td>
            </tr>
        </table>
        <table width="80%" border="1" align="center">
            <tr>
                <td width="50%">Top10
                <table width="100%" cellspacing="0">
                        <thead>
                            <tr>
                                <th width="50%">名称</th>
                                <th>下载次数</th>
                            </tr>
                        </thead>
                        <tbody>
                            <s:iterator value="top10Software">
                                <tr>
                                    <td align="center"><a href='<s:url action="getSoftware"><s:param name="id" value="resId" /></s:url>'>
                                        <s:property value="resName" /></a></td>
                                    <td align="center"><s:property value="count" /></td>
                                </tr>
                            </s:iterator>
                        </tbody>
                    </table>
                </td>
                <td>Latest
                <table width="100%" cellspacing="0">
                        <thead>
                            <tr>
                                <th width="50%">名称</th>
                                <th>下载次数</th>
                            </tr>
                        </thead>
                        <tbody>
                            <s:iterator value="latestResource">
                                <tr>
                                    <td align="center"><a href='<s:url action="getResource"><s:param name="id" value="resId" /></s:url>'>
                                        <s:property value="resName" /></a></td>
                                    <td align="center"><s:property value="count" /></td>
                                </tr>
                            </s:iterator>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td>校园大使项目介绍</td>
                <td>校园大使项目记事</td>
            </tr>
        </table>
    </body>
</html>
